package users.vladan.beans;

public class Config {
	private String dateFormat;
	private int maxCacheSize;
	private DatabaseParameters params;
	private String javaHome;

	public String getJavaHome() {
		return javaHome;
	}

	public void setJavaHome(String javaHome) {
		this.javaHome = javaHome;
	}

	public Config(DatabaseParameters params, String dateFormat) {
		this.params = params;
		this.dateFormat = dateFormat;
	}

	public String getDateFormat() {
		return dateFormat;
	}

	public int getMaxCacheSize() {
		return maxCacheSize;
	}

	public DatabaseParameters getDatabaseParams() {
		return params;
	}

	public void setMaxCacheSize(int maxCacheSize) {
		this.maxCacheSize = maxCacheSize;
	}

	public void init() {
		System.out.println("Init");
	}

	public void destroy() {
		System.out.println("Destroy");
	}
}
